package com.zhouchao.code.feign.email;

import com.zhouchao.code.common.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author: zhouchao
 * @Date: 2021/10/16 22:16
 * @Description:
 */
@Slf4j
@Component
public class EmailServiceFallBack implements EmailServiceFeignClient{
    @Override
    public Result<Boolean> sendEmail(String email, String code) {
        log.info("邮件发送失败");
        return Result.failure("500","邮件发送失败",false);
    }
}
